import os

def GetSpecFileNameList(SearchKeyWord):
    cwd = os.getcwd()
    FileNameList = os.listdir(cwd)
    FilterOutList = [file for file in FileNameList if "{keyword}".format(keyword = SearchKeyWord) in file]
    return FilterOutList
def LowerHeaderFileName(SrcCodeName):
    src_code = open("{FileName}".format(FileName = SrcCodeName), "r")
    # Read lines in file
    list_of_lines = src_code.readlines()
    for index, sentence in enumerate(list_of_lines):
        if "#include" in sentence:
            list_of_lines[index] = sentence.lower()
    src_code.close()

    src_code = open("{FileName}".format(FileName = SrcCodeName), "w")
    src_code.writelines(list_of_lines)
    src_code.close()

SearchKeyWord = input()
for SrcName in GetSpecFileNameList(SearchKeyWord):
        LowerHeaderFileName(SrcName)
